import java.util.concurrent.BlockingDeque;
import java.util.concurrent.LinkedBlockingDeque;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Home-pc
 * Date: 2023-09-23
 * Time: 14:19
 */
public class Demo17 {
    public static void main(String[] args) throws InterruptedException {
        BlockingDeque<String> queue=new LinkedBlockingDeque<>(10);
        queue.put("hello");
        System.out.println(queue.take());
        System.out.println(queue.take());
    }
}
